package com.example.adms.businessTrip.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.adms.businessTrip.dto.*;
import com.example.adms.businessTrip.entity.BusinessTrip;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.adms.leave.dto.leaveDepart;
import com.example.adms.leave.dto.leaveUserId;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hyt
 * @since 2023-04-24
 */
public interface BusinessTripMapper extends BaseMapper<BusinessTrip> {

    int insertBusinessTrip(BusinessTripMsg msg);

    Page<BusinessTrip> leaderSelectBusinessRecorde(Page<BusinessTrip> page,@Param("param") QueryBusinessTrip queryBusinessTrip);

    void addBusinessTripEvent(ExamineBusinessTrip examineBusinessTrip);

    List<businessTripUserId> selectBusinessUserIds();

    List<businessTripUserId> selectBusinessTripIds(businessTripReport report);

    List<leaveDepart> selectBusinessTripDepart();

    Integer selectDepartBusinessTripNumByDepartId(Map<String, Object> param);
}
